var events=require('events')

var eventEmitter = new events.EventEmitter();


eventEmitter.on('test',function () {
    console.log('test event emit');
})

eventEmitter.on('event2',function () {
    console.log('event2 emit');
})


eventEmitter.emit('event2');


